cmake_minimum_required(VERSION 3.10)
project(gtest_gmock)

# 设置C++标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 包含头文件目录
include_directories(
    ./include
)

link_directories(./lib)

# 收集源文件
file(GLOB_RECURSE SRC_FILES "src/*.cpp")

# 添加可执行文件
add_executable(gtest_gmock ${SRC_FILES})

target_link_libraries(gtest_gmock libgtest.a libgtest_main.a libgmock.a libgmock_main.a)